package aop.xml;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * @date 2020/5/3 12:51
 */

public class Main {
    public static void main(String[] args) {
        ApplicationContext context
                 = new ClassPathXmlApplicationContext("aop.xml/AspectJ_注解.xml");
        Car car = (Car) context.getBean("car");
//        Car car = context.getBean(Car.class);
		car.drive();
		System.out.println(context.getBean(MyAOP_AspectJ.class));
	}
}
